﻿using System;
using Microsoft.Xna.Framework;

using System.Text;
using System.Xml;
using Microsoft.Xna.Framework.Content.Pipeline.Serialization.Intermediate;
using Config;

namespace Config
{
    public class CameraInfo
    {
        public Vector3 Position;
        public Vector3 Target;
        public float NearPlane;
        public float FarPlane;
    }
}

namespace Scratch
{

    public class Program
    {
        public static void Main(params string[] args)
        {
            var test = new CameraInfo();
            test.Position = new Vector3(0, 100, 100);
            test.Target = new Vector3(0, 0, 0);
            test.NearPlane = 1.0f;
            test.FarPlane = 4000.0f;

            var sb = new StringBuilder();
            using (XmlWriter writer = XmlWriter.Create(sb))
            {
                IntermediateSerializer.Serialize(writer, test, null);
            }
            Console.Write(sb.ToString());
        }
    }
}
